<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AdminNotice extends Model
{
    protected $fillable = ['admin_id', 'notice_id', 'status', 'read_at'];

    /**
     * @var bool
     */
    public $timestamps = false;

    public function admin(){
        return $this->belongsTo(Admin::class);
    }

    public function notice(){
        return $this->belongsTo(Notice::class);
    }
}
